<?php
/**
 * @Author:      lyt
 * @DateTime:    2016-11-09 13:52:11
 * @Description: 保单信息
 */
class Insurance extends Eloquent
{
    protected $table = "insurance";


    public function accept_insurance_name()
    {
        return $this->hasOne('InsuranceCompany',"id","accept_insurance_id");
    }    

    public function shop_name()
    {
        return $this->hasOne('MaintenanceShop',"id","website");
    } 

    public static $insurance_type = array(
        "1"=>"交强险",
        "2"=>"商业险",
        "3"=>"交强与商业险",
    );

    public static $is_renewal_insurance_type = array(
        "0"=>"新保",
        "1"=>"续保",
    );

}